<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>奉化市诗篇网络科技有限公司-第三方登录</title>
<!--
event-base-ie
history (rollup includes history-base, history-hash, history-hash-ie, history-html5)
io (rollup includes io-base, io-xdr, io-form, io-upload-iframe, io-queue)
json (rollup includes json-parse, json-stringify)
node (rollup includes node-base, node-event-delegate, node-pluginhost, node-screen, node-style)
selector-css2
selector-css3
selector-native
 -->
<script type="text/javascript" src="/yuicombo?version=3.4.1&type=js&appdenminjs=true&yui-base/yui-base&oop/oop&event-custom-base/event-custom-base&event-custom-complex/event-custom-complex&history-base/history-base&features/features&dom-core/dom-core&dom-base/dom-base&selector-native/selector-native&selector/selector&node-core/node-core&node-base/node-base&event-base/event-base&history-html5/history-html5&event-synthetic/event-synthetic&yui-later/yui-later&history-hash/history-hash&history-hash-ie/history-hash-ie&querystring-stringify-simple/querystring-stringify-simple&io-base/io-base&datatype-xml-parse/datatype-xml-parse&io-xdr/io-xdr&io-form/io-form&io-upload-iframe/io-upload-iframe&queue-promote/queue-promote&io-queue/io-queue&json-parse/json-parse&json-stringify/json-stringify&event-delegate/event-delegate&node-event-delegate/node-event-delegate&pluginhost-base/pluginhost-base&pluginhost-config/pluginhost-config&node-pluginhost/node-pluginhost&dom-style/dom-style&dom-screen/dom-screen&node-screen/node-screen&node-style/node-style&event-base-ie/event-base-ie&selector-css2/selector-css2&selector-css3/selector-css3"></script>

<style type="text/css">
#openid_identifier {
  background: transparent url('/aaayjcsxdl/images/login-bg.gif') no-repeat scroll 0pt 50%;
  padding-left: 18px;
  margin:3px 0 5px 0;
}

/*
#openid-wrap,#sitelogin-wrap,#signup-wrap{
	margin-bottom:15px;
	border-top: 1px solid gray;
	border-left: 1px solid gray;
	border-bottom: 1px solid gray;
	border-right: 1px solid gray;
	margin-left: 30px;
	padding-left: 30px;
	width: 800px;
}
*/

.greenbox {
    background-color: #FFFFFF;
    border: 1px solid #89B31F;
    color: #004C6D;
    display: block;
    font-size: 93%;
    line-height: 2em;
    margin: 10px;
    padding: 0 10px;
    text-align: center;
    text-decoration: none;
}

.captchaImg{
	cursor:pointer;
	width:100px;
	height:30px;
	padding: 10px;
}

.captch-box{
	border: 1px solid gray;
	width: 120px;
}

#openid-discs a{
	margin-top: 10px;
	line-height: 150%;
}

#openid-discs a:LINK{
	text-decoration: none;
}

#openid-discs a:VISITED{
	text-decoration: none;
}

#openid-discs a:ACTIVE{
	text-decoration: none;
}

#openid-discs a:HOVER{
	text-decoration: underline;
	color: red;
}

#site-login-form input,#site-login-form select,#site-login-form .captch-box{
	margin-top: 10px;
}

</style>
</head>
<body>
	<div id="ajaxloading" style="display: none;"><img src="/aaayjcsxdl/images/ajax-loader.gif" /></div>
	<div id="openid-tabview">
	<div>奉化市诗篇网络科技有限公司</div>
	<div>
		<div id="openid-wrap">
			<h2>OpenId|QQ登录</h2>
			<form method="POST" action="/openid" id="openid-form">
			<input type="text" name="openid_identifier" id="openid_identifier" size="35"/><br>
			<input type="hidden" name="wheretogo" id="openid-wheretogo"/>
			<input type="submit" value="开始登陆"/>
			</form>
			
			<div id="openid-discs">
				<ul>
					<li><a href="/qqauthlogin" id="qq-disc">QQ登录</a></li>
					<li><a href="http://www.google.com/accounts/o8/id" id="google-disc">谷歌登录-Google</a></li>
					<li><a href="http://yahoo.com" id="yahoo-disc">雅虎登录-Yahoo</a></li>
				</ul>
			</div>
		</div>
		
	</div>
</div>
<script type="text/javascript">

YUI({bootstrap:false,charset:'utf-8'}).use('*', function(Y) {
	var discs = {'google-disc':'www.google.com/accounts/o8/id','yahoo-disc':'yahoo.com','qq-disc':'/qqauthlogin'};
	var openidwrap = Y.one('#openid-wrap'),
		openid_form = Y.one('#openid-form'),
		ajaxloading = Y.one('#ajaxloading');
	var history = new Y.HistoryHash();
	var wheretogo=history.get('next');
	if("fhtrade" == wheretogo){
		wheretogo = "/Fhtrade.html";
	}else if("webtool" == wheretogo){
		wheretogo = "/Webtool.html";
	}else{
		wheretogo = "/FirstGwt.html";
	}
	
	if(history.get('debug')){
		wheretogo += '?gwt.codesvr=127.0.0.1:9997';
	}
	
	var GlobalEventHandler = {
			  start: function(id, args) {
				  ajaxloading.show();
			  },
			  end: function(id, args) {
				  ajaxloading.hide();
			  }
	};
	Y.on('io:start', GlobalEventHandler.start, Y);
	Y.on('io:end', GlobalEventHandler.end, Y);
	
	Y.on('click',function(e){
		this.set('src','/simpleImg?' + Math.random());
	},'.captchaImg');
	
	Y.delegate('click',function(e){
		e.preventDefault();
		var durl = discs[e.currentTarget.get("id")];
		
		if('/qqauthlogin' == durl){
			openid_form.set('action',durl);
		}else{
			openid_form.set('action','/openid');
		}
		Y.one('#openid_identifier').set('value',durl);
		
		Y.one('#openid-wheretogo').set('value',wheretogo);

		openid_form.submit();
	},'#openid-discs','a');
	
	openid_form.on('submit',function(e){
		 var f = Y.one('#openid_identifier');
		 if(!f.get('value')){
			 f.setStyle('backgroundColor','red');
			 e.preventDefault();
			 return;
		 }
		 if(wheretogo){
			 Y.one('#openid-wheretogo').set('value',wheretogo);
		 }
	});
});
//https://www.google.com/accounts/o8/ud
</script>
</body>
</html>